﻿using System;
using System.Collections.Generic;
using System.Text;

namespace iToolPlugin.SMSProvider
{
    public class HTTPException : Exception
    {
        private int statusCode;

        private string reason;

        public HTTPException(int statusCode, string reason)
        {
            this.statusCode = statusCode;
            this.reason = reason;
        }

        public override string ToString()
        {
            return $"HTTP statusCode: {statusCode}, reason: {reason}";
        }

        public int getStatusCode()
        {
            return statusCode;
        }

        public string getReason()
        {
            return reason;
        }
    }
}
